package dd.prog2.exercises.set03;

public class ComposedFunction extends Function {
	protected Function f1;
	protected Function f2;

	public ComposedFunction(Function f1, Function f2) {
		this.f1 = f1;
		this.f2 = f2;
	}

	@Override
	protected double map(double x) {
		return f1.map(f2.map(x));
	}

}
